<div class="deal">
	<div class="deal_content_top"></div>
	<div class="deal_content">	
		<form
			action="<?php echo $this->baseUrl('index.php/cms/index/addpost/id/'.$this->deal_id) ?>"
			method="post">
			<div class="deal-comment-form">
				<h3><a name="comment">Comment</a></h3>
				<?php if (!is_null($this->currentUsername)) :?>				
				<strong><?php echo $this->currentFullname ?></strong>
				<?php endif ?>
				<textarea id="content" name="content" rows="4" cols="67"></textarea>		
				<input type="submit" class="button" value="Gửi" style="float:right;" />
			</div>
		</form>
		<?php if(count($this->errors) > 0): ?>
		<div class="ui-widget">
			<div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
			<?php foreach($this->errors as $error): ?> 
				<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
				<?php echo $error ?></p>    
			<?php endforeach ?>
			</div>
		</div>
		<?php endif ?>
		<?php foreach ($this->comments as $comment): ?>
		<div class="deal-comment-content">
			<strong><?php echo $comment->fullname?></strong>
			<span class="date"><?php echo $comment->created ?></span>
			<div>
				<?php echo $comment->content?>
			</div>
		</div>
		<?php endforeach ?>
	</div>
	<div class="deal_content_bottom"></div>
</div>